<?php

require_once(t3lib_extMgm::extPath('zlib') . 'class.tx_zlib_collection.php');
require_once(t3lib_extMgm::extPath('zboard') . 'class.tx_zboard_forum.php');

class tx_zboard_forums extends tx_zlib_collection
{

    /**
     * Initializer
     */
    public function init()
    {
        $this->_modelClass = 'tx_zboard_forum';
    }

    /**
     * @return array
     */
    public function getPageIds()
    {
        $ids = array();
        foreach($this->_data AS $uid=>$forum) {
            $ids[] = $uid;
        }
        return $ids;
    }

}

if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/class.tx_zboard_forums.php']) {
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/class.tx_zboard_forums.php']);
}
